<?php
namespace app\index\model;

class Links extends Base
{
    //获取某栏目的子栏目
    public function getList($lid)
    {
        if(!empty($lid))
            $this->where(['lid'=>$lid]);
        $data = $this->order('listorder asc')->select();
        return $data;
    }
}

